﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CardGame;
using Cards;

namespace TexasHoldem
{
    public class Table : TableBase
    {
        internal Dictionary<Player, Tuple<Card, Card>> PocketCards;
        public Tuple<Card, Card, Card, Card, Card> CommunityCards;

        //private Dictionary<Player, decimal> Chips;

        public Table(decimal buyIn, params Player[] players)
            : base(players)
        {
            if (this.Players.Length > 10)
            {
                throw new ArgumentOutOfRangeException("players", "Can't play Texas Hold'em with more than 10 players!");
            }

            //this.Chips = this.Players.ToDictionary(player => player, player => buyIn);
            this.PocketCards = new Dictionary<Player, Tuple<Card, Card>>();
        }
    }
}